﻿using System;
using System.Collections.Generic;

namespace NodeSource.Result
{
    public class Table
    {
        public List<Column> Columns { get; private set; }
        public List<Row> Rows { get; private set; }
        public String Name { get; set; }

        public Table()
        {
            Columns = new List<Column>();
            Rows = new List<Row>();
        }

        public Row NewRow()
        {
            var row = new Row(this);
            Rows.Add(row);

            return row;
        }
    }
}
